package com.yonyou.cms.epc.client.dto.graphic;


import com.yonyou.cms.epc.client.dto.BaseDTO;
import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author jxy
 * @since 2022-06-08
 */

public class GradeInfoDTO extends BaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
        private Integer id;
        /**
     * 图解总成ID
     */
        private Integer assemblyId;
        /**
     * 热点编号
     */
        private String redianCode;
        /**
     * X坐标
     */
        private String gradeX;
        /**
     * Y坐标
     */
        private String gradeY;
        /**
     * 是否删除
     */
        private Boolean isDeleted;


    public GradeInfoDTO() {
        super();
    }




    public Integer getId() {
        return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }



    public Integer getAssemblyId() {
        return assemblyId;
    }


    public void setAssemblyId(Integer assemblyId) {
        this.assemblyId = assemblyId;
    }



    public String getRedianCode() {
        return redianCode;
    }


    public void setRedianCode(String redianCode) {
        this.redianCode = redianCode;
    }



    public String getGradeX() {
        return gradeX;
    }


    public void setGradeX(String gradeX) {
        this.gradeX = gradeX;
    }



    public String getGradeY() {
        return gradeY;
    }


    public void setGradeY(String gradeY) {
        this.gradeY = gradeY;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author jxy
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author jxy
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "id");
    }

}
